package com.imooc.springcloud;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author L
 */
@FeignClient("feign-client")
public interface IService {

    @GetMapping("/sayHi")
    String sayHi();

    @GetMapping("/say")
    String say(@RequestParam("name") String name);

    @GetMapping("/retry")
    String retry(@RequestParam("timeout") int timeout);

    @GetMapping("/error")
    String error();
}
